    $(document).ready(function () {
        var total1 = 0; var total2 = 0; var total3 = 0; var total4 = 0; var total5 = 0; var total6 = 0; var total7 = 0; var total8 = 0;
        var total9 = 0; var total10 = 0; var total11 = 0; var total12 = 0; var total13 = 0;
        $('#grid .janeiro').each(function () { total1 = total1 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .fevereiro').each(function () { total2 = total2 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .marco').each(function () { total3 = total3 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .abril').each(function () { total4 = total4 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .maio').each(function () { total5 = total5 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .junho').each(function () { total6 = total6 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .julho').each(function () { total7 = total7 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .agosto').each(function () { total8 = total8 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .setembro').each(function () { total9 = total9 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .outubro').each(function () { total10 = total10 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .novembro').each(function () { total11 = total11 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .dezembro').each(function () { total12 = total12 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('#grid .total').each(function () { total13 = total13 + parseFloat($(this)[0].innerHTML.toLocaleString()); });

        $('tbody').append('<tr><td><b>Total</b></td><td><b><center>' + total1.toFixed(0) +
            '</center></b></td><td><b><center>' + total2.toFixed(0) + '</center></b></td><td><b><center>' + total3.toFixed(0) +
            '</center></b></td><td><b><center>' + total4.toFixed(0) + '</center></b></td><td><b><center>' + total5.toFixed(0) +
            '</center></b></td><td><b><center>' + total6.toFixed(0) + '</center></b></td><td><b><center>' + total7.toFixed(0) +
            '</center></b></td><td><b><center>' + total8.toFixed(0) + '</center></b></td><td><b><center>' + total9.toFixed(0) +
            '</center></b></td><td><b><center>' + total10.toFixed(0) + '</center></b></td><td><b><center>' + total11.toFixed(0) +
            '</center></b></td><td><b><center>' + total12.toFixed(0) + '</center></b></td><td><b><center>' + total13.toFixed(0) +
            '</center></b></td></tr>');
    });
